import axios from "../utils/request"
import base from './base'


const api = {
   /**
    * 登陆接口
    */
   login(params) {
      return axios.post(base.baseUrl + base.login, params)
   },
   logout() {
      return axios.post(base.baseUrl + base.logout)
   },
   /**
    * 请求用户信息列表
    * @param {*} params 
    * @returns 
    */
   personInfofindAllpage(params) {
      return axios.get(base.baseUrl + base.personInfofindAllpage, { params })
   },
   personInfosave(params) {
      return axios.post(base.baseUrl + base.personInfosave, params)
   },
   personInfodeleteById(params) {
      return axios.post(base.baseUrl + base.personInfodeleteById, params)
   },
   personInfoupdate(params) {
      return axios.post(base.baseUrl + base.personInfoupdate, params)
   },
   personInfoupdateStatus(params) {
      return axios.post(base.baseUrl + base.personInfoupdateStatus, params)
   },
   personInfogetUser(params) {
      return axios.get(base.baseUrl + base.personInfogetUser, {params})
   },
   

   personInfoupdatePassword(params) {
      return axios.post(base.baseUrl + base.personInfoupdatePassword, params)
   },


   sysRolefindByAll(params) {
      return axios.get(base.baseUrl + base.sysRolefindByAll, { params })
   },
   sysRolesave(params) {
      return axios.post(base.baseUrl + base.sysRolesave, params)
   },
   sysRoledeleteById(params) {
      return axios.post(base.baseUrl + base.sysRoledeleteById, params)
   },
   sysRoleupdate(params) {
      return axios.post(base.baseUrl + base.sysRoleupdate, params)
   },

   /**
    * 查询所有
    * @param {查询} params 
    * @returns 
    */
   cTypeFindByAll(params) {
      return axios.get(base.baseUrl + base.cTypeFindByAll, { params })
   },
   /**
    * 查询所有项目
    * @param {*} params 
    * @returns 
    */
   projectFindByAll(params) {
      return axios.get(base.baseUrl + base.projectFindByAll, { params })
   },
   proAdminpagefindByAll(params) {
      return axios.get(base.baseUrl + base.proAdminpagefindByAll, { params })
   },
   proAdmindeleteById(params) {
      return axios.post(base.baseUrl + base.proAdmindeleteById, params)
   },
   proAdminupdate(params) {
      return axios.post(base.baseUrl + base.proAdminupdate, params)
   },
   proAdminsave(params) {
      return axios.post(base.baseUrl + base.proAdminsave, params)
   },
   proAdminfindByChild(params) {
      return axios.get(base.baseUrl + base.proAdminfindByChild, params)
   },
   /**
    * 查询所有隧道信息
    * @param {} params 
    * @returns 
    */
   tunnelInfoFindByAll(params) {
      return axios.get(base.baseUrl + base.tunnelInfoFindByAll, {
         params
      })
   },
   tunnelInfoPageFindByAll(params) {
      return axios.get(base.baseUrl + base.tunnelInfoFindByAllpage, {
         params
      })
   },
   tunnelInfoChildFindByAll(params) {
      return axios.get(base.baseUrl + base.tunnelInfoChild, { params })
   },
   /**
    * 
    * @param {查询开挖方式} params 
    * @returns 
    */
   eTypeFindByAll(params) {
      return axios.get(base.baseUrl + base.eTypeFindByAll, params)
   },

   /**
    * 地质平面图片上传
    */
   AddrPlaneFileUpload(params) {
      return axios.post(base.baseUrl + base.AddrPlaneFileUpload, params)
   },
   AddrPlaneFileSave(params) {
      return axios.post(base.baseUrl + base.AddrPlaneFileSave, params)
   },
   AddrPlaneFilefindByAll(params) {
      return axios.get(base.baseUrl + base.AddrPlaneFilefindByAll,{params})
   },
   AddrPlaneFiledeleteById(params) {
      return axios.post(base.baseUrl + base.AddrPlaneFiledeleteById, params)
   },
   AddrPlaneFileupdate(params) {
      return axios.post(base.baseUrl + base.AddrPlaneFileupdate, params)
   },
   AddrPlanePageList(params) {
      return axios.get(base.baseUrl + base.AddrPlanePageList, {params})
   }
   ,
   AddrPlaneFilefindByTid(params) {
      return axios.get(base.baseUrl + base.AddrPlaneFilefindByTid + "?tid=" + params)
   },

   //项目相关
   proAdminfindByAll() {
      return axios.get(base.baseUrl + base.projectFindByAll)
   },
   // 隧道相关
   tunnelInfoSave(params) {
      return axios.post(base.baseUrl + base.tunnelInfoSave, params)
   },
   //删除隧道信息
   tunnelInfodeleteById(params) {
      return axios.post(base.baseUrl + base.tunnelInfodeleteById, params)
   },
   tunnelInfoupdate(params) {
      return axios.post(base.baseUrl + base.tunnelInfoupdate, params)
   },
   //纵断面
   drawVerticalpageList(params) {
      return axios.get(base.baseUrl + base.drawVerticalpageList, { params })
   },
   drawVerticaldeleteById(params) {
      return axios.post(base.baseUrl + base.drawVerticaldeleteById, params)
   },
   drawVerticalsave(params) {
      return axios.post(base.baseUrl + base.drawVerticalsave, params)
   },
   drawVerticalUpdate(params) {
      return axios.post(base.baseUrl + base.drawVerticalUpdate, params)
   },

   // 超前支护
   drawSupportpageList(params) {
      return axios.get(base.baseUrl + base.drawSupportpageList, { params })
   },
   drawSupportsave(params) {
      return axios.post(base.baseUrl + base.drawSupportsave, params)
   },
   drawSupportdeleteById(params) {
      return axios.post(base.baseUrl + base.drawSupportdeleteById, params)
   },
   drawVedrawSupportfindByTidticalsave(params) {
      return axios.get(base.baseUrl + base.drawSupportfindByTid, { params })
   },
   drawVedrawSupportupdate(params) {
      return axios.post(base.baseUrl + base.drawSupportupdate, params)
   },
   // 施工

   drawBuildpageList(params) {
      return axios.get(base.baseUrl + base.drawBuildpageList, { params })
   },
   drawBuildsave(params) {
      return axios.post(base.baseUrl + base.drawBuildsave, params)
   },
   drawBuilddeleteById(params) {
      return axios.post(base.baseUrl + base.drawBuilddeleteById, params)
   },
   drawBuildfindByTid(params) {
      return axios.get(base.baseUrl + base.drawBuildfindByTid, { params })
   },

   // 监控量测
   drawMonitoringpageList(params) {
      return axios.get(base.baseUrl + base.drawMonitoringpageList, { params })
   },
   drawMonitoringsave(params) {
      return axios.post(base.baseUrl + base.drawMonitoringsave, params)
   },
   drawMonitoringdeleteById(params) {
      return axios.post(base.baseUrl + base.drawMonitoringdeleteById, params)
   },
   drawMonitoringfindByTid(params) {
      return axios.get(base.baseUrl + base.drawMonitoringfindByTid, { params })
   },
   drawMonitoringupdate(params) {
      return axios.post(base.baseUrl + base.drawMonitoringupdate,  params )
   },
   // 施工质量监测

   monitorMeasurepageList(params) {
      return axios.get(base.baseUrl + base.monitorMeasurepageList, { params })
   },
   monitorMeasuresave(params) {
      return axios.post(base.baseUrl + base.monitorMeasuresave, params)
   },
   monitorMeasuredeleteById(params) {
      return axios.post(base.baseUrl + base.monitorMeasuredeleteById, params)
   },
   monitorMeasurefindByTid(params) {
      return axios.get(base.baseUrl + base.monitorMeasurefindByTid, params)
   },
   monitorMeasureupdate(params) {
      return axios.post(base.baseUrl + base.monitorMeasureupdate, params)
   },
   monitorMeasurementGenerateweekreport(params) {
      return axios.get(base.baseUrl + base.monitorMeasurementGenerateweekreport, { params }, { responseType: 'blob' })
   },

   // 超前预报

   advanceInfopageList(params) {
      return axios.get(base.baseUrl + base.advanceInfopageList, { params })
   },
   advanceInfosave(params) {
      return axios.post(base.baseUrl + base.advanceInfosave, params)
   },
   advanceInfodeleteById(params) {
      return axios.post(base.baseUrl + base.advanceInfodeleteById, params)
   },
   advanceInfofindByTid(params) {
      return axios.get(base.baseUrl + base.advanceInfofindByTid, params)
   },
   advanceInfoupdate(params) {
      return axios.post(base.baseUrl + base.advanceInfoupdate, params)
   },
   advanceInfofindByAndRemarks(params) {
      return axios.get(base.baseUrl + base.advanceInfofindByAndRemarks, {params})
   },
   // 断面
   tunnelSectionpageList(params) {
      //  
      return axios.get(base.baseUrl + base.tunnelSectionpageList, { params })
   },
   tunnelSectionsave(params) {
      return axios.post(base.baseUrl + base.tunnelSectionsave, params)
   },
   tunnelSectiondeleteById(params) {
      return axios.post(base.baseUrl + base.tunnelSectiondeleteById, params)
   },
   tunnelSectionUpdate(params) {
      return axios.post(base.baseUrl + base.tunnelSectionUpdate, params)
   },
   tunnelSectionfindByWid(params) {
      return axios.get(base.baseUrl + base.tunnelSectionfindByWid, { params })
   },
   tunnelSectionfindBySectionName(params) {
      return axios.get(base.baseUrl + base.tunnelSectionfindBySectionName, { params })
   },
   SupervisionWorkFindTunnelSectionInfo(params) {
      return axios.get(base.baseUrl + base.SupervisionWorkFindTunnelSectionInfo, { params })
   },
   SupervisionWorkSummaryTunnelWidth(params) {
      return axios.get(base.baseUrl + base.SupervisionWorkSummaryTunnelWidth, { params })
   },
   SupervisionWorkFindByProjectNameAndTunnelName(params) {
      return axios.get(base.baseUrl + base.SupervisionWorkFindByProjectNameAndTunnelName, { params })
   },

   monitorMeasurementqueryAllByPage(params) {
      return axios.get(base.baseUrl + base.monitorMeasurementqueryAllByPage, { params })
   },
   monitorMeasurementsave(params) {
      return axios.post(base.baseUrl + base.monitorMeasurementsave, params)
   },
   monitorMeasurementdeleteById(params) {
      return axios.post(base.baseUrl + base.monitorMeasurementdeleteById, params)
   },
   monitorMeasurementUpdate(params) {
      return axios.post(base.baseUrl + base.monitorMeasurementUpdate, params)
   },
   monitorMeasurementUpload(params) {
      return axios.post(base.baseUrl + base.monitorMeasurementUpload, params)
   },
   monitorMeasurefindByReportNo(params) {
      return axios.get(base.baseUrl + base.monitorMeasurefindByReportNo, {params})
   },

   eTypefindByAllpage(params) {
      return axios.get(base.baseUrl + base.eTypefindByAllpage, { params })
   },
   etypesave(params) {
      return axios.post(base.baseUrl + base.eTypesave, params)
   },
   etypedeleteById(params) {
      return axios.post(base.baseUrl + base.eTypedeleteById, params)
   },
   etypeupdateById(params) {
      return axios.post(base.baseUrl + base.eTypeupdate, params)
   },
   tunnelWidthFindByTidPage(params) {
      return axios.get(base.baseUrl + base.tunnelWidthFindByTidPage, { params })
   },
   tunnelWidthSave(params) {
      return axios.post(base.baseUrl + base.tunnelWidthSave, params)
   },
   tunnelWidthDeleteById(params) {
      return axios.post(base.baseUrl + base.tunnelWidthDeleteById, params)
   },
   tunnelWidthUpdate(params) {
      return axios.post(base.baseUrl + base.tunnelWidthupdate, params)
   },
   tunnelWidthFindByClid(params) {
      return axios.get(base.baseUrl + base.tunnelWidthFindByClid, { params })
   },
   tunnelWidthweiyan(params) {
      return axios.get(base.baseUrl + base.tunnelWidthweiyan, { params })
   },
   

   //方向

   tunnelDirectionQueryPage(params) {
      return axios.get(base.baseUrl + base.tunnelDirectionQueryPage, { params })
   },
   tunnelDirectionSave(params) {
      return axios.post(base.baseUrl + base.tunnelDirectionSave, params)
   },
   tunnelDirectionUpdate(params) {
      return axios.post(base.baseUrl + base.tunnelDirectionUpdate, params)
   },
   tunnelDirectionDeleteById(params) {
      return axios.post(base.baseUrl + base.tunnelDirectionDeleteById, params)
   },
   TunnelDirectionChild(params) {
      return axios.get(base.baseUrl + base.TunnelDirectionChild, { params })
   },

   // monitorReportqueryPage: "/monitorReport/queryPage",
   // monitorReportsave: "/monitorReport/save",
   // monitorReportupdate: "/monitorReport/update",
   // monitorReportdeleteById: "/monitorReport/deleteById",
   // monitorReportfindByType: "/monitorReport/findByType",


   monitorReportqueryPage(params) {
      return axios.get(base.baseUrl + base.monitorReportqueryPage, { params })
   },
   monitorReportsave(params) {
      return axios.post(base.baseUrl + base.monitorReportsave, params)
   },
   monitorReportupdate(params) {
      return axios.post(base.baseUrl + base.monitorReportupdate, params)
   },
   monitorReportdeleteById(params) {
      return axios.post(base.baseUrl + base.monitorReportdeleteById, params)
   },
   monitorReportfindByType(params) {
      return axios.get(base.baseUrl + base.monitorReportfindByType, { params })
   },


   // 周边
   monitorPeripheryqueryAllByPage(params) {
      return axios.get(base.baseUrl + base.monitorPeripheryqueryAllByPage, { params })
   },
   monitorPeripherysave(params) {
      return axios.post(base.baseUrl + base.monitorPeripherysave, params)
   },
   monitorPeripherydeleteById(params) {
      return axios.post(base.baseUrl + base.monitorPeripherydeleteById, params)
   },
   monitorPeripheryUpdate(params) {
      return axios.post(base.baseUrl + base.monitorPeripheryUpdate, params)
   },
   monitorPeripheryUpload(params) {
      return axios.post(base.baseUrl + base.monitorPeripheryUpload, params)
   },
   // 拱脚
   monitorFootqueryAllByPage(params) {
      return axios.get(base.baseUrl + base.monitorFootqueryAllByPage, { params })
   },
   monitorFootsave(params) {
      return axios.post(base.baseUrl + base.monitorFootsave, params)
   },
   monitorFootdeleteById(params) {
      return axios.post(base.baseUrl + base.monitorFootdeleteById, params)
   },
   monitorFootUpdate(params) {
      return axios.post(base.baseUrl + base.monitorFootUpdate, params)
   },
   monitorFootUpload(params) {
      return axios.post(base.baseUrl + base.monitorFootUpload, params)
   },
   // 地表下沉
   monitorSurfacequeryAllByPage(params) {
      return axios.get(base.baseUrl + base.monitorSurfacequeryAllByPage, { params })
   },
   monitorSurfacesave(params) {
      return axios.post(base.baseUrl + base.monitorSurfacesave, params)
   },
   monitorSurfaceUpdate(params) {
      return axios.post(base.baseUrl + base.monitorSurfaceUpdate, params)
   },
   monitorSurfaceUpload(params) {
      return axios.post(base.baseUrl + base.monitorSurfaceUpload, params)
   },

   //预警
   sysWarnsave(params) {
      return axios.post(base.baseUrl + base.sysWarnsave, params)
   },
   sysWarnfindByAll(params) {
      return axios.get(base.baseUrl + base.sysWarnfindByAll, { params })
   },
   sysWarndeleteById(params) {
      return axios.post(base.baseUrl + base.sysWarndeleteById, params)
   },
   sysWarnupdate(params) {
      return axios.post(base.baseUrl + base.sysWarnupdate, params)
   },

   tunnelPositiongetPosition(params) {
      return axios.get(base.baseUrl + base.tunnelPositiongetPosition, { params })
   },
   //预警
   Warnsave(params) {
      return axios.post(base.baseUrl + base.Warnsave, params)
   },
   WarnfindByAll(params) {
      return axios.get(base.baseUrl + base.WarnfindByAll, { params })
   },
   WarndeleteById(params) {
      return axios.post(base.baseUrl + base.WarndeleteById, params)
   },
   Warnupdate(params) {
      return axios.post(base.baseUrl + base.Warnupdate, params)
   },
   WarnsendMessage(params) {
      return axios.get(base.baseUrl + base.WarnsendMessage, {params})
   },
   Warnsendxiaojing(params) {
      return axios.get(base.baseUrl + base.Warnsendxiaojing, {params})
   },
   Warngetwarninfo(params) {
      return axios.get(base.baseUrl + base.Warngetwarninfo, {params})
   },
   //施工进度
   tunnelProgressqueryPage(params) {
      return axios.get(base.baseUrl + base.tunnelProgressqueryPage, {params})
   },
   tunnelProgresssave(params) {
      return axios.post(base.baseUrl + base.tunnelProgresssave,  params )
   },
   tunnelProgressupdate(params) {
      return axios.post(base.baseUrl + base.tunnelProgressupdate, params)
   },
   tunnelProgressdeleteById(params) {
      return axios.post(base.baseUrl + base.tunnelProgressdeleteById, params)
   }

// 大数据可视化
  ,
   bigdatawather(params) {
      return axios.get(base.baseUrl + base.bigdatawather, {params})
   },
   bigdatawarninfo(params) {
      return axios.get(base.baseUrl + base.bigdatawarninfo, {params})
   },
   bigdatawarn(params) {
      return axios.get(base.baseUrl + base.bigdatawarn, {params})
   },
   bigdataqualified(params) {
      return axios.get(base.baseUrl + base.bigdataqualified, {params})
   },
   bigdataprogress(params) {
      return axios.get(base.baseUrl + base.bigdataprogress, {params})
   },
   bigdataAdvancedGeology(params) {
      return axios.get(base.baseUrl + base.bigdataAdvancedGeology, {params})
   },
   bigdataConstructionQuality(params) {
      return axios.get(base.baseUrl + base.bigdataConstructionQuality, {params})
   },
   bigdatagetMonitoringmeasurement(params) {
      return axios.get(base.baseUrl + base.bigdatagetMonitoringmeasurement, {params})
   },
   bigdatagetMonitoringmeasurementjindu(params) {
      return axios.get(base.baseUrl + base.bigdatagetMonitoringmeasurementjindu, {params})
   },
   bigdatagetweiyan(params){
      return axios.get(base.baseUrl + base.bigdatagetweiyan, {params})
   },
   bigdatagetgetAdvancedGeologyNumber(params){
      return axios.get(base.baseUrl + base.bigdatagetgetAdvancedGeologyNumber, {params})
   }
}

export default api